package huzh.foundation.dao;

import java.io.Serializable;

/**
 *<p>title:DbPara</p>
 *<p>description:</p>
 * @since 2014-5-27
 * @author huzh
 * @version 1.0
 */
public class DbPara implements Serializable{
    /** serialVersionUID*/
    private static final long serialVersionUID = 6189087750767151937L;

    /** driverName*/
    private String driverName = null;

    /** url*/
    private String url = null;

    /** user*/
    private String user = null;

    /** password*/
    private String password = null;

    /** testSqlClause*/
    private String testSqlClause = null;
    
    /** initSqlClause*/
    private String initSqlClause;

    /**
     * 
     */
    public DbPara(){}

    /**
     * @param driverName
     * @param url
     * @param user
     * @param password
     * @param testSqlClause
     * @param initSqlClause
     */
    public DbPara(String driverName, String url, String user, String password, 
            String testSqlClause, String initSqlClause){
        this.driverName = driverName;
        this.url = url;
        this.user = user;
        this.password = password;
        this.testSqlClause = testSqlClause;
        this.initSqlClause = initSqlClause;
    }

    /**
     * @return driverName
     */
    public String getDriverName(){
        return this.driverName;
    }

    /**
     * @return initSqlClause
     */
    public String getInitSqlClause(){
        return this.initSqlClause;
    }

    /**
     * @return password
     */
    public String getPassword(){
        return this.password;
    }

    /**
     * @return testSqlClause
     */
    public String getTestSqlClause() {
        return this.testSqlClause;
    }

    /**
     * @return url
     */
    public String getUrl(){
        return this.url;
    }

    /**
     * @return user
     */
    public String getUser() {
        return this.user;
    }

    /**
     * @param driverName
     */
    public void setDriverName(String driverName){
        this.driverName = driverName;
    }

    /**
     * @param initSqlClause
     */
    public void setInitSqlClause(String initSqlClause){
        this.initSqlClause = initSqlClause;
    }

    /**
     * @param password
     */
    public void setPassword(String password){
        this.password = password;
    }

    /**
     * @param testSqlClause
     */
    public void setTestSqlClause(String testSqlClause) {
        this.testSqlClause = testSqlClause;
    }

    /**
     * @param url
     */
    public void setUrl(String url){
        this.url = url;
    }

    /**
     * @param user
     */
    public void setUser(String user) {
        this.user = user;
    }

    /**
     * @return
     */
    public String toString(){
        StringBuffer sb = new StringBuffer();
        sb .append("DatabasePara(");
        sb.append("driverName[" + this.driverName + "] -- ");
        sb.append("url[" + this.url + "] -- ");
        sb.append("user[" + this.user + "] -- ");
        sb.append("password[" + this.password + "]");
        sb.append(")");
        return sb.toString();
    }
}
